﻿@model IEnumerable<Orange.Mvc4App.Models.Customer>
<p>
    @Html.ActionLink("添加成员", "Create")
</p>
@if (Model != null && Model.Count() > 0) {
    <table>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.CustomerName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ShortName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Address)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LastModifyUser)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LastModifyTime)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.MnCode)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Phones)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Contract)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Status)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.PostCode)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Remarks)
            </th>
            <th>
            </th>
        </tr>
        @foreach (var item in Model) {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.CustomerName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ShortName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Address)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.LastModifyUser)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.LastModifyTime)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.MnCode)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Phones)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Contract)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Status)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.PostCode)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Remarks)
                </td>
            </tr>
        }
    </table>
} else {
    @:对不起,还没有成员
}